<!--{block return}-->
			<script type='text/javascript' src='./source/plugin/iweitao_paipai/js/jquery.js'></script>
			<script>
				jQuery = jQuery.noConflict();
			</script>
			<style>
				#main_div{
					background: none repeat scroll 0 0 #E5EDF2;
					border: 1px dashed #C2D5E3;
					margin: 10px 0;
					padding: 10px 14px;
					height:450px;
				}
				#main_div table tr td{
					padding-top:10px;
					padding-right:5px;
				}
				#auctionattach_image{
					height:100px;
					margin-top:30px;
				}
				.imglist li{
					float:left;
					padding-top:10px;
				}
			</style>
			<div id='main_div' width='100%'>
				<table>
					<tr>
						<td style='width:75px;'>商品类型:</td>
						<td>
							<select name='type_made' style='width:180px;'>
								<!--{loop $mades $k $v}-->
									<option value='$v'>$v</option>
								<!--{/loop}-->
							</select>
						</td>
						
						<td style='width:75px;'>交易时间:</td>
						<td>
							<input type='text' name='date_start' value='' class='px' onclick='showcalendar(event, this, true)' style='width:71px'>
							-
							<input type='text' name='date_end' value='' class='px' onclick='showcalendar(event, this, true)' style='width:71px'>
						</td>
						<td style='width:75px;'>帖子类型:</td>
						<td>
							<select name='thread_type' style='width:180px;'>
								<option value='default'>默认模式</option>
								<!--{loop $thread_type $k $v}-->
									<option value='$k'>$v</option>
								<!--{/loop}-->
							</select>
						</td>
					</tr>
					<tr>
						<td style='width:75px;'>起拍价格:</td>
						<td>
							<input type='text' name='price' value='' class='px' style='width:170px;'>
						</td>
						<td style='width:75px;'>提价幅度:</td>
						<td><input type='text' name='add_price' value='' class='px' style='width:170px;'></td>
						<td style='width:75px;'>商品名称:</td>
						<td>
							<input type='text' name='title' value='' class='px' style='width:170px;'>
						</td>
					</tr>

				</table>
			<div id="auctionattach_image">
				<button class="pn" onclick="uploadWindow(function (aid, url){auctionaid_upload(aid, url, 1);ATTACHORIMAGE = 1;})" type="button">
					<span>上传图片</span>
				</button>
				<input id="auctionaid1" type="hidden" name="auctionaid1">
				<input id="auctionaid_url1" type="hidden" name="auctionaid_url1">
				<button class="pn" onclick="uploadWindow(function (aid, url){auctionaid_upload(aid, url, 2);ATTACHORIMAGE = 1;})" type="button">
					<span>上传图片</span>
				</button>
				<input id="auctionaid2" type="hidden" name="auctionaid2">
				<input id="auctionaid_url2" type="hidden" name="auctionaid_url2">
				<button class="pn" onclick="uploadWindow(function (aid, url){auctionaid_upload(aid, url, 3);ATTACHORIMAGE = 1;})" type="button">
					<span>上传图片</span>
				</button>
				<input id="auctionaid3" type="hidden" name="auctionaid3">
				<input id="auctionaid_url3" type="hidden" name="auctionaid_url3">
				<button class="pn" onclick="uploadWindow(function (aid, url){auctionaid_upload(aid, url, 4);ATTACHORIMAGE = 1;})" type="button">
					<span>上传图片</span>
				</button>
				<input id="auctionaid4" type="hidden" name="auctionaid4">
				<input id="auctionaid_url4" type="hidden" name="auctionaid_url4">
				<button class="pn" onclick="uploadWindow(function (aid, url){auctionaid_upload(aid, url, 5);ATTACHORIMAGE = 1;})" type="button">
					<span>上传图片</span>
				</button>
				<input id="auctionaid5" type="hidden" name="auctionaid5">
				<input id="auctionaid_url5" type="hidden" name="auctionaid_url5">
				<ul class='imglist'>
					<li id='uploadimg_btn1'></li>
					<li id='uploadimg_btn2'></li>
					<li id='uploadimg_btn3'></li>
					<li id='uploadimg_btn4'></li>
					<li id='uploadimg_btn5'></li>
				</ul>
			
			</div>
</div>
<script>
function getid_auc(id) {
	return document.getElementById(id);
}
function auctionaid_upload(aid, url, clickid) {
	getid_auc('auctionaid_url'+clickid).value = url;
	updateauctionattach(aid, url, '{$_G['setting']['attachurl']}forum', clickid);
}
function updateauctionattach(aid, url, attachurl, clickid) {
	getid_auc('auctionaid'+clickid).value = aid;
	getid_auc('uploadimg_btn'+clickid).innerHTML = '<img src="' + attachurl + '/' + url + '" style="padding-right:10px;"  width="170" height="230"/>';
}
</script>
<!--{/block}-->